from __future__ import annotations

from fastapi import Depends

from ..services.analysis_service import AnalysisService
from ..agents.multi_agent_orchestrator import MultiAgentOrchestrator


def orchestrator_dependency() -> MultiAgentOrchestrator:
    return MultiAgentOrchestrator()


def analysis_service_dependency(orchestrator: MultiAgentOrchestrator = Depends(orchestrator_dependency)) -> AnalysisService:
    return AnalysisService(orchestrator=orchestrator)


